Guided Practice 5.2: Converting Currencies

Using the HOF strategy, write a function convert-currencies, which takes a conversion factor and a list of values in the first currency, and returns a list of the same values in the second currency. For example, if a Euro is worth US$1.18, then

(convert-currencies 1.18 (list 1 10 100)) 
 = (list 1.18 11.8 118.0)
converts a list of values in Euros to their values in US dollars.

Reminder: this is just a toy example. In the real world, you should NEVER use floating-point numbers to represent currency.

[ANSWER]


Last modified: Wed Oct 12 23:32:18 Eastern Daylight Time 2016